[T7051] Fix _render_qweb_pdf_weasyprint function.

Merged Joel Maglioni requested to merge T7051 into 17.0-stage

Merge request reports