Fixes crashes of words auto-highlighting 

when document is closed while the timer is still running.

Also prevents highlighting of "large" files.