Allow null branch in GitCommandHelpers.GetFullBranchName

Fix NullReferenceException in GitCommandHelpers.PushCmd overload called by Gerrit plugin.
(cherry picked from commit 8323f3d2dc2e26c86b129defbad5fca8398558f8)