Fixed handle_job_recovery to be able to properly handle
array jobs and still not allow duplicate entries.
TRQ-2492