Works around a crash in q3richtext.
Works around a crash in q3richtext.

Full fix will potentially break other code and is thus avoided

Task-number: 248992
Reviewed-by: Trond

KDE/qt,pruiz/wkhtmltopdf-qt,RLovelett/qt,KDE/qt,igor-sfdc/qt-wk,RLovelett/qt,radekp/qt,radekp/qt,RLovelett/qt,RLovelett/qt,KDE/qt,radekp/qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,radekp/qt,radekp/qt,igor-sfdc/qt-wk,radekp/qt,radekp/qt,pruiz/wkhtmltopdf-qt,RLovelett/qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,KDE/qt,pruiz/wkhtmltopdf-qt,radekp/qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,RLovelett/qt,KDE/qt,RLovelett/qt,pruiz/wkhtmltopdf-qt,RLovelett/qt,radekp/qt,KDE/qt,pruiz/wkhtmltopdf-qt,RLovelett/qt,igor-sfdc/qt-wk,RLovelett/qt,igor-sfdc/qt-wk,RLovelett/qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,KDE/qt,radekp/qt,igor-sfdc/qt-wk,KDE/qt,pruiz/wkhtmltopdf-qt