Fixed seg-fault when the parser encounters an error.