Added a check when validating icons.