Fix when a Branch is referencing a Repository that doesn't exist anymore
Fix when a Branch is referencing a Repository that doesn't exist anymore

Review: https://codereview.appspot.com/7224045/

nicko96/Chrome-Infra,nicko96/Chrome-Infra,nicko96/Chrome-Infra,nicko96/Chrome-Infra,nicko96/Chrome-Infra