SONAR-3755 Fix problem when setting rule key from db