HPCC-10764 Regression suite run stalls on some query failues, e.g. code gen
issues

Add checking to avoid run stall on some query failures code gen issues.

Signed-off-by: Attila Vamos <attila.vamos@gmail.com>
Merge pull request #5327 from AttilaVamos/HPCC-10764-fix

HPCC-10764 Regression suite run stalls on some query failues, e.g. codegen  issues

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>