Fix identification of branch to push

Excludes "(no branch)" from eligible branches when source clone is in detached head state.