add test for 0-length legend name

mapserver/mapserver#4782