Wait on duplicate generator
Avoid crash in repeated generator case

This shouldn't happen - it's an abuse of generators - but if it does, we
should at least avoid crashing.  (We can also check whether the
generator is complete.)