Avoid slurmctld crash getting job info if detail_ptr is NULL.