[gtk] Cherry-pick commit from gtk+ master to fix NULL pointer in gtk_clipboard_wait_for_contents.

This hopefully fixes https://bugzilla.xamarin.com/show_bug.cgi?id=16677