Add custom error handler to prevent app from being broken

I’ve found a working solution following Extend IonicErrorHandler + navigate to new page