Stop collecting headings, if heading is empty