PIM-2418 : Fix the groups / in group filter (MongoDB support)

| Q                   | A
| ------------------- | ---
| Bug fix?            | Y
| New feature?        | N
| BC breaks?          | N
| Tests pass?         | Y
| Scenarios pass?     | Y
| Checkstyle issues?  | N
| Changelog updated?  | N
| Fixed tickets       | PIM-2418
| Doc PR              |