Handle case when a file with a FITS extension is not actually a FITS file

Closes #136