TBranchProxy fix

This was needed to detect when the tree changed in the tchain. The problem was that we still had a pointer on tree change, but it became invalid. Simply checking for the tree pointer value was not enough, as it could be the same. (Pending approval by Philippe?)