Don't attempt to match in namespace if path is invalid
Merge pull request #34 from hearsayit/namespace-strpos-warning

Don't attempt to match in namespace if path is invalid