Fix the LibreOffice fix
My previous commit was a bit overzealous and didn't take into account the fact that there are legitimate reasons for the widget argument to Style::drawPrimitive() to be NULL.