[MRG] protect against zero division in HistFactory split_norm_shape