Fixes crashes of words auto-highlighting when document is closed while the timer is still running.
Prevents highlighting of "large" files.
Merge pull request #545 from fdorg/fix/autohighlight-crash

Fixes crashes of words auto-highlighting