kaplibs: Do not abort just because of an invalid header in a FITS extension