MDL-24690 fixed incorrect cohort condition when auto-creating groups