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)


let parent = this[$getParent]();
        while (!(parent instanceof Template)) {
          if (parent.font) {
            font = parent.font;
            break;
          }
          parent = parent[$getParent]();
        }
      }
      let height = null;
      let width = null;
      if (
        this.value.exData &&
        this.value.exData[$content] &&
        this.value.exData.contentType === "text/html"
      ) {
        const res = layoutText(
          this.value.exData[$content],
          font,
          fontFinder,
          maxWidth
        );
        width = res.width;
        height = res.height;
      } else {
        const text = this.value[$text]();
        if (text) {
          const res = layoutText(text, font, fontFinder, maxWidth);
          width = res.width;
          height = res.height;