make icon resist bad values for icon property.