SONAR-5007 - Fixed hasDebt filter in RuleIndex

Conflicts:
	sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexMediumTest.java