Make sure async-functions work without generators.

This was due to a typo.

Fixes #1231