cwc: Add missing loop break in the section resolved check