add some safety around hists where the x axis variable is missing