Improved error handling by:
- catching runtime errors when walking through the ParseTree
- emptying the classes result tree from the TreeController when a grammar error occurs.