Allow null branch in GitCommandHelpers.GetFullBranchName

Fix NullReferenceException in GitCommandHelpers.PushCmd overload called by Gerrit plugin.