yelp: check if running on X11 before running gdk_x11_* code

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