This is a weird one. Normally we run mainGameMenu to leave an NPC. That's the case here too. However, as you point out, bug.
Running mainGameMenu a second time is enough to clear it. Huh. Going to have to think about this. Why would the first run not be enough?
edit: maybe fen has ideas.