Fixed rare crash when an item is destroyed while being transformed.