txtinfo: fix a crash when there are no gateways