Validator: fix on file type validation when not required