Attach (recommended) or Link to PDF file here:
issue13500 (in test corpus)

This regressed when landing #13566. 

What is the expected behavior? (add screenshot)
<img width="664" alt="image" src="https://user-images.githubusercontent.com/942640/122467522-7bc8aa80-cf6f-11eb-9d4d-311eb7c64fb2.png">


What went wrong? (add screenshot)
![image](https://user-images.githubusercontent.com/942640/122467565-85eaa900-cf6f-11eb-9c10-8a8686ed440c.png)


}
      };
      for (let i = 0, ii = contentAreas.length; i < ii; i++) {
        const contentArea = (this[$extra].currentContentArea = contentAreas[i]);
        const space = { width: contentArea.w, height: contentArea.h };
        if (leader) {
          htmlContentAreas[i].children.push(leader[$toHTML](space).html);
          leader = null;
        }
        if (trailer) {
          htmlContentAreas[i].children.push(trailer[$toHTML](space).html);
          trailer = null;
        }
        const html = root[$toHTML](space);
        if (html.success) {
          if (html.html) {
            hasSomething = true;
            htmlContentAreas[i].children.push(html.html);
          } else if (!hasSomething) {
            mainHtml.children.pop();
          }
          return mainHtml;
        }
        if (html.isBreak()) {
          const node = html.breakNode;
          if (node.targetType === "auto") {
            flush(i);
            continue;
          }
          const startNew = node.startNew === 1;