Fixes #3687 Thanks to @Maradar for testing, see https://github.com/koreader/koreader/issues/3687#issuecomment-378652074