hacky fix for wkhtmltopdf issue

Generation sometimes succeeds but gives non-zero errorcode