Fix github issue #168, NPE when changing worlds in proximity of a NPC.