Fix EZP-23221: prevent fatal error in RouteReferenceGenerator if there is no request route.