fix bug getComputedStyle bug in Firefox's iframes

Firefox has a [bug](https://bugzilla.mozilla.org/show_bug.cgi?id=548397) with getComputedStyle (that returns null) in an iframe context with `display:none`. This PR prevents this bug to occur waiting Mozilla to fix it.