Fix #10468 (WMS GetLegendGraphic support)