Add a protection for Jira issue #ROOT-5900 (histogram integral is modified after rebinning)