Applied a partial fix for BZ#1013444 - Chapters or sections that contain <refentry>s do not work in Docbuilder.