Improve default behavior for HTMLForm::canDisplayErrors