SONAR-4831 Fix issue when dealing with removed rules