Fix out-of-bounds crash when fiddling with NPCs
Merge pull request #359 from Mystler/crashfix

Fix out of bounds crash in GetNPC()