Added logic to catch invalid flux unit string from FITS header.