Remove checks for generator functions without yield.

Generators without a yield are valid, making this check redundant.

For example:

    function *() {} // This is useless but valid.

This commit simply removes the check, updates messages, and removes
a unit test for the check.

Closes #1123