SONAR-5903 Fix lost of rule tags and NPE