Fix for duplication bug.

It was possible to get the item in a phantom slot with the new inventory management features. This fix prevents for example the item double click feature (make stack of many small?) to take items from the ghosted inventory.

I think I've isolated the problem in the right place, but I'm very new to the BuildCraft code so I hope you do a serious sanity check. There might be a better way.