the format() function
Just like we do on web, any exception or fatal error will result into a InternalErrorException/FatalErrorException.
Add a compatibility shim into CakeEventManager to fix `null` not breaking model callbacks. This was a regression created when model callbacks were re-factored to use the event manager. This code should be removed in 3.x as its inconsistent with events used everywhere else in the framework. Fixes #3123