wayland: Check the xwayland shutdown policy before listening for x11 windows
We only listen for those so we know there's no more X11 clients that we should keep the Xwayland server alive for. Check first that we really did request Xwayland to be handled on demand for this, otherwise the check is superfluous, even harmful.