Corrected NPE when WID has no icon entry.