Adjust error_reporting for form component to allow deprecation messages ...

| Q             | A
| ------------- | ---
| Bug fix?      | [no]
| New feature?  | [no]
| BC breaks?    | [no]
| Deprecations? | [yes]
| Tests pass?   | [yes]
| Fixed tickets | [#12608]
| License       | MIT
| Doc PR        |