Intersect group bounding box with the current canvas dimensions.

Fixes https://groups.google.com/forum/#!topic/mozilla.dev.pdf-js/Ds193IaZLDQ