Update ExceptionRenderer as per latest core code.

Tests still to be updated.