Fix TH1::Smooth for histograms with less than 3 bins (ROOT-5307)