qt: fix crash when platform compositor fallbacks
- compositor A create a MainUI instance
- MainUI registers singletons
- scene fails to load
- compositor is destroyed
- fallback to compositor B
- MainUI registers singletons (singletons are already registered -> assertion fails)