Fix crash in calculator on malformed input