Fix timer bug when the parser throws a ParserAbortedException.
Timer bug when the grammar is empty.