Fix thread check failure in reporting string of Implicit Highlighter

Fixes #1002295.
This, and the line above, use `compiler`, but from different sources. Let's merge the two in one single `asyncExec`.