Merge pull request #16029 from Alchez/hotfix-child-task-error

Fix error when trying to convert a task into a group even if no child tasks exist