Compositor::self()->scene() may return nullptr while compositing is being restarted.
mentioned in commit ff9eee95
mentioned in commit 062e0441