If we didn't find HDF5, unset HDF5 variables

Hopefully this fixes the regression Ataollah Mesgarnejad found.