highgui: wayland: don't crash because of unintialized core object