Fix endless error recovery

Parser was modified to prevent endless looping while recovering from
errors. The next step is to implement a skipTo() function that will
limit the cascading of erroneous errors. Future update will also include
to Visitor classes that check for null nodes in trees.