SONAR-5007 improve management of active rules in api/rules/search and api/rules/show