Fix LatinIME crashing if JNI lib without gesture support is installed.

Change-Id: I60292a8e272d484e1d4a4407ddceeac863d6d70e
Merge remote-tracking branch 'upstream/cm-10.2' into cm-10.2