Don't escape document sections with annotations.

This would lead to sections being doubly escaped and
the annotations not being rendered correctly.
Ignore `null` sections when escaping.