protect against zero division
Merge pull request #523 from ndawe/master

[MRG] protect against zero division in HistFactory split_norm_shape