ast: Prevent seg fault when reading unsupported TNX FITS headers

Problem reported by Bill Joye