qgismapserver: backport #7521 (GetLegendGraphic)