These events are unexpected and inconsistent with the other platforms, including GTK+ 2, so make sure we don't send them during the destruction. Closes https://github.com/wxWidgets/wxWidgets/pull/821