Prevent negative job array index

We've seen slurmctld crashes due to negative job array indices.