Throw exception in the Routes::getNamedRoute() method instead of the URL::toRoute() method