Steps to reproduce (this PDF):
[page4.pdf](https://github.com/mozilla/pdf.js/files/5990272/page4.pdf)

````
npm install
node_modules/.bin/gulp dist-install
node examples/node/pdf2svg.js /tmp/page4.pdf
````

Error:
````
Error: Invalid SVG dimensions
    at unreachable (/tmp/pdf.js/build/dist/legacy/build/pdf.js:2086:9)
    at assert (/tmp/pdf.js/build/dist/legacy/build/pdf.js:2091:5)
    at DOMSVGFactory.create (/tmp/pdf.js/build/dist/legacy/build/pdf.js:640:24)
    at SVGGraphics._makeTilingPattern (/tmp/pdf.js/build/dist/legacy/build/pdf.js:24178:36)
    at SVGGraphics._makeColorN_Pattern (/tmp/pdf.js/build/dist/legacy/build/pdf.js:24127:23)
    at SVGGraphics.setFillColorN (/tmp/pdf.js/build/dist/legacy/build/pdf.js:24088:39)
    at SVGGraphics.executeOpTree (/tmp/pdf.js/build/dist/legacy/build/pdf.js:23634:22)
    at /tmp/pdf.js/build/dist/legacy/build/pdf.js:23508:18
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
````
typeof PDFJSDev === "undefined" ||
  PDFJSDev.test("!PRODUCTION || GENERIC")
) {
  const SVG_DEFAULTS = {
    fontStyle: "normal",
    fontWeight: "normal",
    fillColor: "#000000",
  };
  const XML_NS = "http:www.w3.org/XML/1998/namespace";
  const XLINK_NS = "http:www.w3.org/1999/xlink";
  const LINE_CAP_STYLES = ["butt", "round", "square"];
  const LINE_JOIN_STYLES = ["miter", "round", "bevel"];
  const convertImgDataToPng = (function () {
    const PNG_HEADER = new Uint8Array([
      0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a,
    ]);
    const CHUNK_WRAPPER_SIZE = 12;
    const crcTable = new Int32Array(256);
    for (let i = 0; i < 256; i++) {
      let c = i;
      for (let h = 0; h < 8; h++) {
        if (c & 1) {
          c = 0xedb88320 ^ ((c >> 1) & 0x7fffffff);
        } else {
          c = (c >> 1) & 0x7fffffff;
        }
      }
      crcTable[i] = c;
    }
    function crc32(data, start, end) {