Ignore invalid inventory slots. Fixes BUKKIT-3737