Fix missing validated_data in `raise_errors_on_nested_writes` (#2221)