Handle a possible exception where a file source does not specify a protocol.
Merge pull request #9447 from cachedout/exception-handling-file

Handle a possible exception