Fix CI problems when applying the code style
The apply_code_style script had a problem when the source branch was available in multiple remote repositories. In this situation, git checkout <branch> does not work and gives an error. It only works if there is no local branch with the given name and only one remote repository has a matching branch.
Fixes ACTS-252.