Check the window instead of the superview's superlayer for a smarter workaround. If the window ivar is set, then we know that there should be a layer tree that we can render to a bitmap.