Branch selector doesn't check for the case where there is no default branch. Tries to operate on the #select-branch-default link which doesn't exist.