Fix hdf5 bad handling of empty numpy array in some h5py versions