Fixed another location where empty datasets in hist caused exceptions