Check for Router instance before setting the context to avoid method not found
Check for Router instance before setting the context to avoid method not found

pk16011990/Routing,ZnanyLekarz/Routing,peterkokot/RoutingExtraBundle,aheinz-sg/Routing,timplunkett/Routing,sustmi/Routing,WouterJ/RoutingBundle,peterkokot/Routing