HPCC-11288 - regression if inside transaction

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>