[Linter] Fixes an issue linting invalid HTTP sources

Fixes https://github.com/CocoaPods/CocoaPods/issues/2463