SONAR-5189 Fix regression when searching measures in cache