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

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>