[gtk] Check if the window is destroyed.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=18157