allow starless generators, backport from https://github.com/gregglind/esprima/commit/a825d3c85d8f13478c89ccdb0e0e1a4ce4ffa32e#diff-7c9336e4324ea31118ce749be055b6a3R1659