shell/tray-manager: Delay managing screen if necessary
Now that Xwayland startup is asynchronous, the function may be called before X11 is available, resulting in a crash.
Fix this by only managing the tray immediately if we already have an X11 display, and wait for it to be set up otherwise.
Fixes #2308 (closed)
Edited by Florian Müllner