Fix error dialogs on LibreOffice 4.2