Consistency check after keyboard's backspace deletion

Please see commit message for an explanation.

This was tested on android 4.0.4 with Swype keyboard, and on android 2.3 with hardware keyboard and with the default soft keyboard too.