Fix for timing inventory changed events

Sending them after saving the component causes the ownership of the item
to be changed for when the event is handled.