Trying to read a pdf file using PDFJS.getDocument function. The pdf worker is throwing


UnknownErrorException {
 name: "UnknownErrorException", 
 message: "Invalid root reference", 
 details: "FormatError: Invalid root reference"
}

The error can be easily reproduced calling PDFJS.getDocument(pdfUrl) using the attached pdf
[110229_10312017_6810306.pdf](https://github.com/mozilla/pdf.js/files/1444166/110229_10312017_6810306.pdf)


'caused by missing "endobj" -- trying to recover.'
              );
              contentLength -= objToken[1].length;
              break;
            }
          }
          startPos = endPos;
        }
        const content = buffer.subarray(position, position + contentLength);
        
        
        const xrefTagOffset = skipUntil(content, 0, xrefBytes);
        if (xrefTagOffset < contentLength && content[xrefTagOffset + 5] < 64) {
          xrefStms.push(position - stream.start);
          this.xrefstms[position - stream.start] = 1; 
        }
        position += contentLength;
      } else if (
        token.startsWith("trailer") &&
        (token.length === 7 || /\s/.test(token[7]))
      ) {
        trailers.push(position);
        position += skipUntil(buffer, position, startxrefBytes);
      } else {
        position += token.length + 1;
      }
    }
    
    for (const xrefStm of xrefStms) {
      this.startXRefQueue.push(xrefStm);