Fix encoding slice of nil slices.