WMS GetLegendGrapics: obtain legend graphics with no labels

As requested by @mhungent here is the fixed source code.