Fix post RFC91 issues in mapogcsld.c (#4974)

Make following tests to pass : wms_get_map_sld_proj.png,
wms_get_map_multi_polygon_filter.png, wms_get_map_multi_polygon_filter_postgis.png