Better handle GtkSourceView API break

Use the return value instead of weird hacks to see if this succeeded or
not; this is identical to Evan Nemerson's original patch.

https://bugzilla.gnome.org/show_bug.cgi?id=738896