HPCC-9532 Fix code generator for reading dataset from another wuid

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