Fix issue #4 where BranchCommand assumes repo is in branch and throws notices for undeclared array keys.