Issue on Set Attribute operator

I'm facing an issue when using the Set Attribute operator on published items. Sometime the first items does not have the attribute. It causes issue when a subsequent Design Sequence tries to read the attribute.
 


Any idea why this is happening and how to fix it so it can be reliable? Thanks.