LPS-40875 Close nodes after publish from staging

This code removes the selected nodes from the preferences, so that when a user tries to publish from staging again, they will be able to select new pages they want to publish. This fix was made so that they do not have to deselect the previously published pages before selecting the pages they want to publish.

Thanks,
Eric