Branches, BranchesRemote: Improve handling of deleted upstream branches.