MDL-64961 REST web service: Fatal error in error handler