Fix exception thrown during re-routing without parameters