Fix handling failed route lookups