Return no active branch when repo has detached head