git.el: Avoid a lisp error when there's no current branch (detached HEAD).