Prevent soft-keyboard crash on Android version 4.1 & 4.2