Fix quality flaws
SONAR-5718 Fix exception when filtering on rules