Fix panic in router given to bogus last-hop hints