Bot randomly freezes

I tried adding this IF activity, but when it finds a “blank” attachment, the sequence doesn’t even go down to that IF activity, it just exits the loop.