fix(modeling): iterate safely over connection array
fix(modeling): iterate safely over connection array

close #220

pedesen/diagram-js,pedesen/diagram-js,tsneed290/diagram-js,thr0w/diagram-js,tsneed290/diagram-js,thr0w/diagram-js,bpmn-io/diagram-js