HPCC-9172 Fix mismatching records from datasets in MAP/CASE

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