Prevent error when #type is missing
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3381150. --> Reported by: [claudiu.cristea](https://www.drupal.org/user/56348) Related to !3 >>> <p>In some cases we get this error:</p> <pre>Warning: Undefined array key "#type" in image_library_widget_theme_suggestions_form_element() (line 37 of web/modules/contrib/image_library_widget/image_library_widget.module).</pre><p>It happens when the element has no #type but has #theme</p>
issue