Don't call get_route recursively if a route's gateway matches the destination