Fix issue when NPC is not present when building a Listener.