minor fix for the case when spawned_tasks field is None