fix FS#1001 - PDF export fails silently