Error in Content Manager: “Cannot read properties of undefined (reading ‘includes’)” when navigating between content types
## 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: v22.11.0
- NPM version: 10.9.0
- Strapi version: v5.6.0
- Database: Postgres
- Operating system: MacOS
- Is your project Javascript or Typescript: Javascript

When navigating between two content types in the Content Manager which both have a media field in it, an error occurs:

<img width="551" alt="Screenshot 2025-01-13 at 08 29 32" src="https://github.com/user-attachments/assets/615e21e2-349d-4597-9ede-3b65780d3297" />

Upon inspection, we found that this issue originates from the `MediaSingle` React component used in the Content Manager view when displaying thumbnails. The mime property is undefined, which causes the error in the following code snippet:

```
var MediaSingle = ({ url, mime, alternativeText, name, ext, formats }) => {
  var _a;
  const fileURL = prefixFileUrlWithBackendUrl(url);
  if (mime.includes("image")) {
    const thumbnail = (_a = formats?.thumbnail)?.url;
    const mediaURL = prefixFileUrlWithBackendUrl(thumbnail) || fileURL;
  }
```

Steps to reproduce the behavior
	1.	Go to the Content Manager in Strapi.
	2.	Open the first content type .
	3.	Navigate to the second content type using the side menu.
	4.	Return to the first content type using the side menu.
	5.	See the error in the Strapi dashboard and/or browser console.

Expected behavior

Users should be able to navigate seamlessly between content types in the Content Manager without encountering any errors.

Screenshots
<img width="876" alt="Screenshot 2025-01-13 at 09 30 56" src="https://github.com/user-attachments/assets/99459f17-c05d-4b3e-ae3d-2a1c170cab8f" />
<img width="736" alt="Screenshot 2025-01-13 at 09 31 08" src="https://github.com/user-attachments/assets/859f2701-2c6a-4716-baf6-454a7a0b8e12" />


Possible cause:
The mime property may not always be provided for media items, which is not being handled in the code. A potential fix could include a null or undefined check before calling `.includes()`:

```
if (mime && mime.includes("image")) {
  const thumbnail = (_a = formats?.thumbnail)?.url;
  const mediaURL = prefixFileUrlWithBackendUrl(thumbnail) || fileURL;
}
```

Additional context
	•	The issue occurs in Strapi 5.6.0
	•	It impacts the usability of the Content Manager for any content types using the Thumbnail field.
	•	Disabling the Thumbnail field from the view temporarily resolves the issue but reduces functionality.

Temporary workaround:
	1.	Go to the Content Manager.
	2.	Select the content type.
	3.	Click the “View Settings” (cog icon) and choose Configure the View.
	4.	Remove the Thumbnail field from the view.

This prevents the error but makes it impossible to preview media thumbnails in the Content Manager.
