CodeGen: Entertain empty classes (#1377)

Addresses #1377.