Fix possible NULL dereference in mag_summon()
Fix inverted NULL check in do_zmob_cmd()
Check for invalid subcmds in do_pour()