Move NPC spawn check up a little so it can prevent NPEs with other plugins.