Fixed Android crash by adding safety to the hideKeyboard() -function.

I tested this on Xperia Mini Pro with Android 4.0.4, which crashed always nicely. In the original code, the activity.getCurrentFocus() always returned null on my project (PopupDialog with LineEdit and/or TextEdit)