Check the "Foreground Shapes" layer for any conflicts. For example, if there are "Rectangles" which only have three points, a normal rectangle has four points. Something like this could cause the app to not correctly parse the contents of the document. These shapes should be removed and replaced with un-corrupted versions.
The new HTML editor is able to deal with this situation correctly.