Guard against version field not existing in GORM objects.