Fix trim tasks avoid having more new_measures than total_measures.

If there are a lot of unprocessed measures, we might delete some old
ones which were never used. But that's ok for a station where we have
a lot of data.