[quartz-window]Always ensure that transient_for isn't destroyed before using it.
Fixes crash when destroying a dialog whose transient_for parent is already destroyed.
Fixes crash when destroying a dialog whose transient_for parent is already destroyed.