Job array dependency fix

If a job is submitted that is dependent upon a job array in which
the first task of that array is already purged from slurmctld, then
find another element of that array and properly handle the dependency.