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

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #4535 from ghalliday/issue9532

HPCC-9532 Fix code generator for reading dataset from another wuid

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>