HPCC-9645 Fix problems with adding newAtom to selects from child rows

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>