dyngroup: Fix bug when deleting a criterion
Refs #2284 Fixed when deleting one criterion, but still buggy when
deleting more, or adding after delete ... This module is really buggy