Fix bug where if a repeated field is set to itself, it will clear the field