Fix RepoGroup::hasForeignRepos() and RepoGroup::forEachForeignRepo()