Fix #1398198 [Edit Book: Strange backwards selection when you type XML entities](https://bugs.launchpad.net/calibre/+bug/1398198)