MediaLibraryField usage cause error in 5.3+ (migration to TS)
<!--
Hello 👋 Thank you for submitting an issue.

Before you start, please make sure your issue is understandable and reproducible.
To make your issue readable make sure you use valid Markdown syntax.

https://guides.github.com/features/mastering-markdown/

Please ensure you have also read and understand the contributing guide.

https://github.com/strapi/strapi/blob/main/CONTRIBUTING.md#reporting-an-issue
-->

## Bug report

### Required System information

<!-- Please ensure you are using the Node LTS version (18, 20, or 22) -->
<!-- Strapi v3 is no longer supported, please update to Strapi v4 -->
<!-- If you are reporting a frontend bug please provide error logs after setting STRAPI_ENFORCE_SOURCEMAPS=true in your .env -->
<!-- This environment variable makes frontend errors easier to read and trace -->

- Node.js version: v20.12.0
- NPM version:  10.5.0
- Strapi version: 5.4.1 (+ Yarn 4.4.1)
- Database: SQLite
- Operating system: OSX
- Is your project Javascript or Typescript: TypeScript

<!-- Did you know you can run `yarn strapi report` or `npm run strapi report` to get this information easier? -->

### Describe the bug

Some of the plugins we're developing (`reactions` & `navigation`) use the `MediaLibraryField` exposed by Strapi. Till version 5.3.x the implementation following by migration guidelines:

```ts
const fields = useStrapiApp('ReactionsPluginSettings', (state) => state.fields);
```

does not cause any issues. Since version 5.3+ so when you migrated the Media Library to TS, following error pops and block the UI.

```
TypeError: Cannot read properties of undefined (reading 'allowedTypes')
    at http://localhost:1337/node_modules/.strapi/vite/deps/chunk-MZGQORAC.js?v=7827988d:15044:18
    at renderWithHooks (http://localhost:1337/node_modules/.strapi/vite/deps/chunk-YCN7MIJY.js?v=7827988d:11568:26)
    at updateForwardRef (http://localhost:1337/node_modules/.strapi/vite/deps/chunk-YCN7MIJY.js?v=7827988d:14345:28)
    at beginWork (http://localhost:1337/node_modules/.strapi/vite/deps/chunk-YCN7MIJY.js?v=7827988d:15966:22)
    at beginWork$1 (http://localhost:1337/node_modules/.strapi/vite/deps/chunk-YCN7MIJY.js?v=7827988d:19781:22)
    at performUnitOfWork (http://localhost:1337/node_modules/.strapi/vite/deps/chunk-YCN7MIJY.js?v=7827988d:19226:20)
    at workLoopSync (http://localhost:1337/node_modules/.strapi/vite/deps/chunk-YCN7MIJY.js?v=7827988d:19165:13)
    at renderRootSync (http://localhost:1337/node_modules/.strapi/vite/deps/chunk-YCN7MIJY.js?v=7827988d:19144:15)
    at recoverFromConcurrentError (http://localhost:1337/node_modules/.strapi/vite/deps/chunk-YCN7MIJY.js?v=7827988d:18764:28)
    at performSyncWorkOnRoot (http://localhost:1337/node_modules/.strapi/vite/deps/chunk-YCN7MIJY.js?v=7827988d:18907:28)
```

<img width="1439" alt="Screenshot 2024-11-24 at 17 18 58" src="https://github.com/user-attachments/assets/6e2d1df3-8894-4199-9899-50b6d7ef6cbf">

### Steps to reproduce the behavior

0. Install the latest version of `reactions` plugin in your 5.3+ instance of Strapi
1. Go to Settings -> Reactions
2. Click on `Add new reaction`
3. See error

### Expected behavior

The modal with Media Library Field should appear
