E-book viewer: Fix a rare hang caused by an infinite loop when decoding a CFI