Fix for problem with bpmn2 serialization format (which contains CData sections).
(cherry-picked from 6b12f77)