Bug 15503 [QA Followup] - Remove the use of GetBranchesLoop