Fix NPCs' rage segfaulting the game.
Merge pull request #5086 from ianestrachan/fix-angry-npc-segfaults

Fix NPCs' rage segfaulting the game.