Npc excape item segfault fix

Addresses #1201