Fix cascading failure when opening graphs

When cgraph fails to open a graph, all subsequent graphs will also fail to open. The fix is to flush the lexer state.

This fixes Instaviz issue [253](http://redmine.pixelglow.com/issues/253).