wayland: Handle certain lockup-causing corner cases in clipboard handling
This ensures the clipboard handling doesn't lock up in the following scenarios:
- GTK returned with a mismatching type to the one requested
- GTK fails to convert to the requested type
See also https://bugzilla.mozilla.org/show_bug.cgi?id=1722369
Edited by msizanoen1