Fix loaded set to prune properly.

@bug W-1989778@

@rev eric.anderson@
Merging origin/goliver/master-pending-loaded-prune into master