Added some empty-data testing
Merge pull request #390 from flikka/histogram-fix

Added some empty-data testing