wayland: Fix crash when wayland server is not running