Fix a problem in calling some TH1 functions like Print() when the histogram has a buffer which is not empty