Markdown: Prevent Undo failures

Complete any active undo context if
an exception is thrown from a command.