Fix codegen for when comments_before is undefined.

Fix #333