Bugfix: Errors when there is no upstream branch.