Stop ghost items from appearing when closing the player inventory