Fix NPE in Settings -> Language & input -> Default -> Setup input
methods

If the InputMethodAndLanguageSettings fragment is launched in IME-only
mode, it removes most preferences, so we need to null-check them before
use.

Change-Id: I297cc9c6885f62ed6ff65937ef5da401ab7cd271
JIRA:CYAN-896

Conflicts:
	src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java
Shorten clumsy and repetitive gesture strings

Change-Id: I77e4d980bcb2f2ed64169450e2de225d9ab3c079

Conflicts:
	res/values/cm_strings.xml
Show the "no action" summary for unitialized gesture values

Change-Id: I023ee587669103aa4d2a819af700ce3daa53695d