Creation of new Collection Type throws an error on Self hosted strapi
![Image](https://github.com/user-attachments/assets/5f7481c2-bfba-402f-9653-6a0a581eb892)


```
TypeError: Cannot read properties of null (reading 'schema')
    at FormModalHeader (http://localhost:1337/admin/node_modules/.strapi/vite/deps/chunk-SHTIW2DO.js?v=47c363ba:5218:83)
    at renderWithHooks (http://localhost:1337/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=47c363ba:11568:26)
    at updateFunctionComponent (http://localhost:1337/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=47c363ba:14602:28)
    at beginWork (http://localhost:1337/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=47c363ba:15944:22)
    at beginWork$1 (http://localhost:1337/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=47c363ba:19781:22)
    at performUnitOfWork (http://localhost:1337/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=47c363ba:19226:20)
    at workLoopSync (http://localhost:1337/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=47c363ba:19165:13)
    at renderRootSync (http://localhost:1337/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=47c363ba:19144:15)
    at recoverFromConcurrentError (http://localhost:1337/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=47c363ba:18764:28)
    at performSyncWorkOnRoot (http://localhost:1337/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=47c363ba:18907:28)
```
      