Fix crash when moving npcs to an inactive cell