URIUtils::IsRemote: fix endless loop with stacked special path