NullPointerException occurs in getCommittedTextLength method when IME is ON