bugfix. if schema has no virtuals then remove that toJSON part