SONAR-3755 Fix performance issue in selectNonClosedIssuesByModule query