Geomap: legend enhancements

Seems odd to check that the object has a property "value" before checking if it is null or undefined. First checking if it is null/undefined, if it is then go to the else condition. If it is not, then check if the object has a property "value". Otherwise you have a bunch of unnecessary condition checking.