fix: 🐛 Strapi parser middleware, catch block error (logging) (#9612)
fix: 🐛 Strapi parser middleware, catch block error (logging) (#9612)

Throwing error inside of a controller (using plain javascript) results
in a different error in parser middleware. Before calling methods on the
`message` pr operty on the error object a check should be performed to
see if the `message` property is defined on the error instance.

✅ Closes: #9356
wistityhq/strapi,wistityhq/strapi