Prevent crash in CTGitPathList::ParserFromLsFile() and add the related error handling