Fix NPE when entering a digit after cutting the last calculation result.

Change-Id: I98f0484bb3413dd08d8dacee9522e4243ab1867a
Merge branch 'Cyanogen/cm-11.0'