The deduplication code assumed remd.target matches the id of results,
but this is no longer true, as we started using REMD objects whose
origin context was used as result id, when remd.target is a
directory (221d48e242520344c6435c07d444f961637497fe).
Resolves T4710.