Handle errors when a branch is not found. * Catch all Exception, not just IOException. * Log an error message when a branch is not found in repository. Change-Id: Ic4e71525d9fa22a424ecfddc0515deaff8b52878