SONAR-4069 Fix issue after last refactoring: core metrics were not loaded
SONAR-4069 Fix issue with configuration when using old API (without task)