Remove NPC entry from active_npc vector when NPC is killed by explosion to avoid segfault.

I think this addresses #1235 and #1236