Fixed failing unit test by no longer allow enum to generate when no
enums are defined.