Refs #18316; take into consideration the affectPreviousVersion attribute when performing the archiving/unarchiving operation