shell/window-preview-layout: Ensure we don't touch dead objects
We were assuming the lifetime of the MetaWindow worked out in our favour, and further hoping the GC didn't work against us
Avoid this by taking an explict weak ref, and checking the object is live before removing handlers
Fix: #6570 (closed)
(I must confess, I've not actually tested this)