[PATCH OLK-5.10 33/39] Fix the broken logic in mg_sp_group_add_task()