ignore missing end in FITS

this change stops the code from crashing when a FITS header is
incorrectly written.