Autogen: fix for if a model has no fields