HPCC-9186 Roxie cores writing dataset to workunit

A regression introduced when json output support was added, by the looks of
it.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>