Fix closing windows in qtshell example
Setting the QWaylandQuickItem's surface (QWaylandSurface) to null only
when the shell surface is alredy null ensures that
QWaylandQtShellChrome::clientDestroyed is fired again.
However, handling shellSurfaceChanged instead of clientDestroyed fixes
the issue, as well, with the additional benefit, that there are no null
accesses (of shellSurface) in the example's Chrome.qml.
Pick-to: 6.12 6.11
Fixes: QTBUG-147321
Change-Id: I2d3bbf7172c6a100a24c87824a761ecc973c11f7
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>