fix crash if icon name is NULL