Avoid segfault on xkbless systems
Avoid segfault on xkbless systems

This was reported in bug 628932 to cause problems on VNC.
(cherry picked from commit d5c2cb7bcbdd2c5f9c1523043f2cd252421325c6)

Distrotech/gtk,Unity-Technologies/gtk,Unity-Technologies/gtk,johne53/MB3Gtk-2,Unity-Technologies/gtk,Distrotech/gtk,Unity-Technologies/gtk,Distrotech/gtk,johne53/MB3Gtk-2,johne53/MB3Gtk-2,Distrotech/gtk,johne53/MB3Gtk-2,Unity-Technologies/gtk,Distrotech/gtk,johne53/MB3Gtk-2