HPCC-9479 Include fields used from RIGHT in an ONFAIL

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