Return original query if building the route is unsuccessful