Fix for job array record find logic

Previous logic could miss master pending job array record
job array dependency fix