Added exception handling for missing FITS header information.