shell: Fix crash when xwayland surface starts maximized