Retrieve 0 stats/samples when user asked for zero stats/samples

Besides, we also found a bug in influxdb, which will retrieve all stats/samples when user asked for zero stats/samples. The bug could be reproduced with new unit test and it's now fixed.