Fix. file attribute is set to null only when the validator is safe