wIconPaint: avoid crashing if icon is NULL