Safer handling of SVG bounding boxes (for MSIE)

Addresses #3, but probably not a complete fix.