Link to PDF file (or attach file here):
[pages4.pdf](https://github.com/mozilla/pdf.js/files/1128300/pages4.pdf)

Configuration:
- Web browser and its version: Firefox 54
- Operating system and its version: Win 10
- PDF.js version: 1.8.522
- Is an extension: no

What is the expected behavior? (add screenshot)
![chrome1-1 1](https://user-images.githubusercontent.com/146436/27918380-2f74512a-6245-11e7-8525-d0038fa6c2e8.jpg)
![chrome1-2 1](https://user-images.githubusercontent.com/146436/27918425-54f8e47e-6245-11e7-9bff-127f79ad0511.jpg)


What went wrong? (add screenshot)
![screenshot from 2017-07-06 12-10-30](https://user-images.githubusercontent.com/146436/27918442-5d57624e-6245-11e7-9436-5ba31cc8bd1a.png)
![screenshot from 2017-07-06 12-10-44](https://user-images.githubusercontent.com/146436/27918454-63b486da-6245-11e7-9eb5-c03aa5c40943.png)



static makeHexColor(r, g, b) {
    return `#${hexNumbers[r]}${hexNumbers[g]}${hexNumbers[b]}`;
  }
  
  static transform(m1, m2) {
    return [
      m1[0] * m2[0] + m1[2] * m2[1],
      m1[1] * m2[0] + m1[3] * m2[1],
      m1[0] * m2[2] + m1[2] * m2[3],
      m1[1] * m2[2] + m1[3] * m2[3],
      m1[0] * m2[4] + m1[2] * m2[5] + m1[4],
      m1[1] * m2[4] + m1[3] * m2[5] + m1[5],
    ];
  }
  
  static applyTransform(p, m) {
    const xt = p[0] * m[0] + p[1] * m[2] + m[4];
    const yt = p[0] * m[1] + p[1] * m[3] + m[5];
    return [xt, yt];
  }
  static applyInverseTransform(p, m) {
    const d = m[0] * m[3] - m[1] * m[2];
    const xt = (p[0] * m[3] - p[1] * m[2] + m[2] * m[5] - m[4] * m[3]) / d;
    const yt = (-p[0] * m[1] + p[1] * m[0] + m[4] * m[1] - m[5] * m[0]) / d;
    return [xt, yt];
  }
  
  
  static getAxialAlignedBoundingBox(r, m) {