Ensure post_render_cache placehold is replaced when exceptions are caught.