Bug fix. $append shouldn't create empty array values when the field
doesn't contain values
Fix by Johann Rolschewski.