Work around IE9's broken handling of .styleSheet.cssText
IE9 drops @media queries from .styleSheet.cssText when that property
is read. Therefore we can't trust it to contain what we put there
previously.
Bug: T108727
Change-Id: Ic4f553966e48e3fc608a47ef193df923227ceb96