minor bugfixes related to purging zero-sized snapshots