HPCC-10489 Fix problem when dataset param is projected to base record

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

HPCC-10489 Fix problem when dataset param is projected to base record

Reviewed-By: Jamie Noss <james.noss@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>