Fix EZP-23221: prevent fatal error in RouteReferenceGenerator if there is no request route.
Merge pull request #945 from joaoinacio/EZP-23221_ezroute_no_route_fatal_error

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