fix potential bug where an invalid purgeAfter value could result in immediate purging of all snapshots.