txtinfo: avoid a potential null deref in routes