Guard against null compositor in thumbnail item
If compositing is disabled, compositor will be null.
We hit a path where we could destroyOffscreenTexture when the compositing is disabled then again when the Thumbnail is destroyed. In this case we query Compositor::self()->scene() and crash.