Fix crash when transferring some modded items.