Bug fix, code cleanup try & catch to prevent crash

- Added a try and catch to prevent the calculator from crashing and
instead adding “Error” to the textview.

- Improved the CheckSymbol function to cope with this new try and catch.