Pass branch ID = 0 if none defined (global context) - refs BT#8194