On after render

currently the error page displayed in the cms does not call onAfterRender so the system plugins never get a chance to do anything before it is rendered, so add a call to onAfterRender before displaying content