Fix Firefox dom exception (ready)

There is inconsistent behavior with Firefox and other browsers when attempting to call `getBBox()` on an element with `display:none`. Chrome returns `0` while Firefox throws a DOM exception. This fix prevents the Firefox exceptions.

https://bugzilla.mozilla.org/show_bug.cgi?id=612118