Fix NPE in some NPC commands

An NPE would fire if any one of these commands was run in a world event
or similar script that does not contain an NPC.