Fix ConcurrentModificationException in Dispatcher.performSubmit()

Fixes #641
Merge pull request #680 from lucasr/issue641

Fix ConcurrentModificationException in Dispatcher.performSubmit()