The nature of the collectd plugin is that you send multiple events within a single UDP payload.  It needs to keep state between events *within* that single payload, but not with the next one.  That's why we clear it out here.