[tern addon] Fix fetching of parser state

Issue #1799