Do not apply highlighting if not holding the revision the context belongs to.
This can happen when a new parse-job updates the change tracker before the highlighting is applied. Very very rare.