[DF-883] fix undo in GroupEntitiesForMultiselectCommand