added check the file exists in ClassFileIterator

added check the file exists against #1816