Fix magit-guess-branch: do not return t

For example, an error occurred when magit-guess-branch is returning t
in magit-default-rev.  This patch fixes the problem.