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

Change-Id: I60292a8e272d484e1d4a4407ddceeac863d6d70e