Fixed bug when getting rendered diff from revisions with invalid XML