highgui: wayland: fix crash when no mouse callback set
highgui: wayland: poll incoming events