HPCC-12740 Regression from HPCC-12728

Signed-off-by: james <james.noss@lexisnexis.com>
Merge pull request #6755 from jamienoss/issue12740-reg-from-12728-5.2.0

HPCC-12740 Regression from HPCC-12728

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>