Fix spell checking

Disable spell checking only if there is no text,
so it doesn't crash on correction.
3 jobs for master in 4 minutes and 11 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Test
canceled #22289
code-quality

00:02:27

failed #22285
code-quality

00:02:52

 
  Build
passed #22287
windows

00:01:43