fix numberformatexception when pressing add, divide, multiply, subtract without an integer first

ALMOST ALL CRASHES FIXED

Signed-off-by: Liew Zhao Wei <zhaoweiliew@gmail.com>