Prevent invalid items from crashing icon assign