Attach (recommended) or Link to PDF file here:
[Scan-to-Mail-PDF1_(1).pdf](https://github.com/mozilla/pdf.js/files/6876708/Scan-to-Mail-PDF1_.1.pdf)

Configuration:
- Web browser and its version: Firefox Developer 91.0b7 (64-Bit)
- Operating system and its version: Windows 10 (21H1)
- PDF.js version: 2.10.339 (also tested with the online demo, Version 2.11.5)
- Is a browser extension:

Steps to reproduce the problem:
1. Open the attached pdf
2. Scroll to page 3

What is the expected behavior? (add screenshot)
![image](https://user-images.githubusercontent.com/7944797/126957487-cc7a2d19-adfb-42e4-9809-74e1a7a85048.png)

What went wrong? (add screenshot)
![image](https://user-images.githubusercontent.com/7944797/126957351-29aebb4d-eadd-4273-b69d-530b9060c12c.png)




const capability = createPromiseCapability();
    let styleCache = Object.create(null);
    
    const canvas = this._document.createElement("canvas");
    canvas.height = canvas.width = DEFAULT_FONT_SIZE;
    if (
      typeof PDFJSDev === "undefined" ||
      PDFJSDev.test("MOZCENTRAL || GENERIC")
    ) {
      canvas.mozOpaque = true;
    }
    this._layoutTextCtx = canvas.getContext("2d", { alpha: false });
    if (this._textContent) {
      const textItems = this._textContent.items;
      const textStyles = this._textContent.styles;
      this._processItems(textItems, textStyles);
      capability.resolve();
    } else if (this._textContentStream) {
      const pump = () => {
        this._reader.read().then(({ value, done }) => {
          if (done) {
            capability.resolve();
            return;
          }
          Object.assign(styleCache, value.styles);