Settings: fix NPE

if the user resumes InputMethodAndLanguage settings and
the user dictonary preference was already removed before,
the user will run into a NPE.

check it to fix it.

Change-Id: I1eac844720768bb668e26f0a572c7876b7b0bcee