RepoConfigLoader: handle main_repo in __delitem__

This will fix bug #480254.