fix #5377, histogram with no data