Fixed a bug reading the HDF5 error stack