Fixed crash when removing TE from an existing world.