Fixed base conversion to prevent app crash on tablets

Change-Id: Ib66af0cb22d73c255819dc489925b92b8d2fb520
Merge "Fixed base conversion to prevent app crash on tablets" into cm-10.2
Merge branch 'cm-10.2' of https://github.com/CyanogenMod/android_packages_apps_Calculator into jb43