Fix #1401357 [Harmless error when merging files in the editor](https://bugs.launchpad.net/calibre/+bug/1401357)
Edit book: Fix auto-complete of closing tag not working when typing the closing tag at just before a word (the word would become the closing tag name).
A nicer repr for Tag objects