Don't discard stack when MenuInventory::itemReturn() fails

@igorko This is a possible fix for #1202, though I still haven't been able to reproduce that bug myself. To see if this commit works, try to reproduce the bug as you described. If the stack you're dragging over gets placed in the first available inventory slot instead of the drag destination, that means this patch works.