Don't die if HEAD ref is not symbolic.

Examples of situations when HEAD is not symbolic:

 * You're doing interactive rebase
 * You're using git bisect
 * ... and so on.
It's cleaner to have another case: "not on any branch".
Merge pull request #123 from paxan/dont-die-when-head-is-detached

Don't panic if your HEAD is detached