Added an EditBlock class for exception-safe rerendering edits.