Fix NPCs' rage segfaulting the game.

Fixes #4807 by having a safety check to prevent ~~an array index out of bounds exception~~ a segmentation fault.

Hostile NPCs aren't on the list of hostile creatures, it seems.