magit/magit — pull request #524 by tarsius (2013-01-06 23:49:04+00:00)
Title: magit-guess-branch: fix recently introduced bug

nil is a list and it's car is also nil, but nil isn't a string.
Therefor first test whether the list is empty.