guard empty histogram
Merge pull request #102 from schmitts/normalize_guard_empty_histograms

fix for issue #101