Fix crash happening when deleting a remote branch. Closes #2538.
GetFullBranchName() test added
ChangeLog updated