Improve exception logging.
Improve exception logging.

Sometimes "safe" error page generation also generates an exception. In that case
throw back the exception generated when rendering the normal error page, so that
it gets logged by the error handler. This helps in debugging and fixing the root
cause of the issue.

cakephp/cakephp,CakeDC/cakephp,CakeDC/cakephp,ndm2/cakephp,cakephp/cakephp,CakeDC/cakephp,ndm2/cakephp,cakephp/cakephp,cakephp/cakephp,ndm2/cakephp,ADmad/cakephp,ADmad/cakephp,ADmad/cakephp,CakeDC/cakephp,ndm2/cakephp,ADmad/cakephp