Fix get_or_create issues with non-nullable values.