CORE-291 fix cloning of legacy TaskGroupTasks (task type not set)

This was causing a validation error on cloning, because the task type wasn't set for TaskGroupTasks created before task types were implemented (migration fail) and therefore failed validations.