Same as https://github.com/koreader/koreader/pull/2956. Fixes https://github.com/koreader/koreader/issues/4928.