fix adding time

if record has time key, keys will be [time, other_key_a, other_key_b, time] and
it crashs influxdb(0.7.0).