Fix cover image bug

Code assumed DITA-OT 2.0. Backported to 1.8 generation.