Don't break the entire JS simulation if someone starts this map with treasures disabled.
They are deleted before InitGame, resulting in the ownershipChange handler wanting to read from the entity ID arrays which weren't initialized yet.
Reported By: mapkoc
Refs https://wildfiregames.com/forum/index.php?/topic/24153-is-this-fixed/