Fixes the return value from #onDuplicate trigger to correctly force the validation to be retried.