Refs #22047; correctly set the versioning status instead of removing it and added a logger statement for better debugging of operations