HPCC-10022 Ensure duplicate persists within a query are still caught

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