Update RouteCompiler.php

Fixes INF problem on solaris.
[Finder] fixed a potential issue on Solaris where INF value is wrong (refs #7269)