TRQ-2688. afterstartarray dependency not working.

Fix a problem with empty dependent jobs being found on the end of dependency lists.