Merge "Fix crashes caused by some input devices." into honeycomb