fix #224. Handle null values when replicating data
fix #223. Add a test to make sure the panic is fixed
Merge pull request #223 from influxdb/fix-223-panic-in-server

Panic in server