recover from parser error parsing agents in treebank file