Fix bug where test crash if job_index is not specified in session_job_conf