Fix warning when saving with no custom fields