Fix influxdb/influxdb#548. Don't iterate through points if it's empty