Fixed issue #3211: Push from detached head not possible when no local branch exists