Fix destructive iterating over marks from KTextEditor::MarkInterface

Authored by kossebau on Jul 6 2019, 1:39 PM.