Add an error messages in the TH1 methods which makes sense only for 1D histogram, like TH1::GetBinCenter.
This fixes ROOT-5049