check outputs from get_first_listener_addrport_string

Fix for 9650; bugfix for 0.2.3.16-alpha.
Merge remote-tracking branch 'public/bug9650'