xwayland: Avoid crash if processing keys after xwayland is disconnected
Whilst the XWayland input filter only runs whilst XWayland is running there is hypothetical window between the wayland connection to xwayland being disconnected and handleXwaylandFinished, the process exiting. This should be guarded correctly.