Invert condition to fix Program mapping to TaskGroup
Merge pull request #1653 from reciprocity/feature/fix-map-task-group

Invert condition to fix Program mapping to TaskGroup