keyboard: Fix a crash

If there's no default input source for a given locale, id would go
uninitialized and then crash further down when accessing it for a
string comparison.

https://bugzilla.redhat.com/show_bug.cgi?id=1172363