Edit book: Fix a bug preventing marking an image as cover in a book that previously had no cover