HPCC-10265 Fix problems processing action dependencies

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #5043 from ghalliday/issue10265

HPCC-10265 Fix problems processing action dependencies

Reviewed-By: Jamie Noss <james.noss@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>