Bug: empty task groups would cause a hang.