Fixes <https://github.com/koreader/koreader/issues/3030>. Cross-ref to <https://github.com/koreader/koreader/pull/6998>.