Fix uploading empty data

I found KeenClient uploads 2 bytes data even if it has no events.