[containmentactions/switchwindow] Fix loop itteration
Summary: BUG: 402552
Test Plan:
Opened menu
Didn't crash
Reviewers: Plasma, ngraham
Reviewed By: ngraham
Subscribers: ngraham, plasma-devel
Tags: Plasma
Differential Revision: https://phabricator.kde.org/D17925