Fix malformed mimetype exception on failed validation.

The _mimetype property in NamedFileWidget would fail on attempting
to render after a validation failure when it tried to lookup a
mimetype with the wrong method. Result was a malformed mimetype
exception. Fixes #13798.