wayland: Fix a potential null dereference when sending current output device mode
See https://crash-reports.kde.org/organizations/kde/issues/50071
It's not pretty clear why the crash occurs, the backtraces that we receive appear to be corrupted too.
The theory is that m_currentMode is null for some reason. This change tests out that theory.