Scripts/Commands: Fix ".npc info" immune mask output

Fix ".npc info" showing wrong immune mask list
Fixes #12358