[Routing] Fixing bug caused by upstream Symfony commit https://github.com/symfony/Routing/commit/b815198cebc6740e053e8e4cd2138c86a6886868