Bug fix: none type TypeError exception handling in isCorpusFile() method