job_coordinator: fix the return value of do_submit_tasks_in in case of failure.