Check if marker properties are defined before to display them

This avoids "undefined" values in the marker tooltips.