IsCorpusFile() and isDictionaryFile() should catch both AttributeError and TypeError