fixed problem of erasing iterator that then tries to iterate
Merge pull request #1386 from puigh/my-test-fix

DQM bug fix -- Fixed problem of erasing iterator that then tries to iterate