Fixed advanced branch spec behaviour in getCandidateRevisions

This commit relates to
https://github.com/jenkinsci/git-client-plugin/pull/129
Merge pull request #225 from alexanderlink/branchTest3

Fixed advanced branch spec behaviour in getCandidateRevisions