Improved purgeObsoleteSamples so it better handles the case where all windows got expired...