Fixed #22318 -- Added Form.has_error() to easily check if a given error ...

...has happened.