Allow empty datasets to be passed to hist, as long as at least one dataset has data
Fixed another location where empty datasets in hist caused exceptions
Add test for histogram with empty dataset
Add cleanup to test
Merge pull request #2551 from neggert/hist_emptydata

Fix behavior of hist function when passed empty dataset