Ooooh, I see now.
Yeah, that's a bug. The client asks the server for the information, but refers to the inventory instead of your storage. As a result, it gets either the wrong item back, or the server ignores the quest to start with.
It'll be fixed next reboot. Well done.