fix for issue #151"bug in _lp_git_branch_color"

I proposing this pull request as a fix for the bug I noted in issue #151 which got into the master branch after the merge of #113.

This fix works for me, seems also logical to me and keep the feature implemented by #113.