Fixed advanced branch spec behaviour in getCandidateRevisions

This Pull Request relates to
https://github.com/jenkinsci/git-client-plugin/pull/129