ZEN-10549: The fix hides StopIteration error.
Merge pull request #145 from zenoss/ZEN-10549

ZEN-10549: The fix hides StopIteration error.