Fix #1335468 [Editor: ValueError: No JSON object could be decoded](https://bugs.launchpad.net/calibre/+bug/1335468)