Fix a regression that broke the compare books tool when used outside the book editor. Fixes #1321975 [Unhandled exception when comparing epub books](https://bugs.launchpad.net/calibre/+bug/1321975)