comics: Fix a crash when opening a comic document