Avoid TypeError when except_job_id is None