fix for extraction paragraphs and sections from headers/footers with XWPFWordExtractor, see Bugzilla 47727