Comment 18 for bug 1477696

Your past gave me an idea. This might fix it, I have no way to be sure,
since I cannot reproduce the bug, but...

https://github.com/kovidgoyal/calibre/commit/0a45fa19afedea870b5f6bfd6278b0686c357886