Better error message for invalid Photon-HDF5 file