Fix. file attribute is set to null only when the validator is safe
Merge pull request #3223 from maxlapko/master

СFileValidator fix. The file attribute is set to null only when the validator is safe