Validator::validateMimes returns false if the uploaded file isn't valid

If the upload is partial, the UploadedFile instance might be invalid and the mimetype shouldn't be validated.
Merge pull request #3804 from arthurdarcet/validate-mime

Validator::validateMimes returns false if the uploaded file isn't valid
Work on file mime validator.