With #96473, the first parameter of
`AbstractFormViewHelper::renderHiddenIdentityField()` was hardened
to `object|null`. This is actually fine since only objects are suitable
to render those fields (falling back to NULL, probably for bc reasons).
However, form elements in EXT:form cannot be directly accessed with the
FormRuntime. Instead, calling `$formRuntime[$formField]` returns the
current value of the form element instead of the elemnt itself.
To avoid situations where everything else than an object is passed to
said method, the resolved object is now checked and falls back to NULL
if it's not an object. This change restores the previous behavior of
EXT:form elements prior to the change introcuded with #96473.