Fix AttributeError when opening non cobol files (e.g. data files)