Avoid parsing empty sections, e.g. for ZA Hansard

Fixes mysociety/pombola#1072 (this is essentially a branch of issues/pombola/1072-avoid-empty-sections, but which has been rebased, with corrections to tests etc., and should apply cleanly onto master.