more fixes for "Push to Gerrit" when no change in push config is done

- with the last change, the local branch name was used in some times
- ignore spaces at end of branch name (otherwise an exception is thrown when branch name gets parsed)

Related to issue #128