Increment iterator before any potential continue
Otherwise if none of the results are viable, we could end up in an infinite loop because we continue before
we actually advance the iterator but also never reach the actionCount limit.
Differential Revision: https://phabricator.kde.org/D22004