Fix overzealous pruning of old data

The statistic set for the prior day was always getting pruned,
which would prevent any historical data from being collected.