middleware:  don't barf when wrapped generater yields no items.

Fixes:  http://bugs.repoze.org/issue184