If we try to install a keyboard that's missing some metadata we shouldn't crash. Fixes #5384, #5385. Cherry-pick of #5414. (cherry picked from commit 3bd01739)