Spell check: Fix language declarations not being respected for nested tags. Fixes #1310000 [Language recognition fails in editor with nested tags](https://bugs.launchpad.net/calibre/+bug/1310000)