MB-6972:  Don't fail if the repo doesn't have the branch.

Change-Id: If5c3ef48df56637cf6be0e5ed2942c1e088472a1