MDL-42234 - Repositories: Fix undefined variable notice when no repositories are enabled.