OpenTSDB: Fixed the bug that kept the last invalid rate. (https://rbcommons.com/s/pepperdata/r/3744)
The bug was caused by the effort to reduce memory usage and optimize performance
by delaying the rate calculation until requested. The fix was calculating rate
when rate span moves to next value, and serving users with a copy of the current
rate and letting the span move to the next rate.