consider this minimal example (attachment).
Collapsing B not only makes C disappear as it should, but it also makes D and the rest of the document disappear.
You seem to have CSS turned off.
Please don't fill out this field.
The described error has been added to the official bug list.
Thank you for your report.