Fix for repairing a repository that has no repository dependencies.
Merged from next-stable