Fix trying to remove a node from the document instead of it's parent
Fix trying to remove a node from the document instead of it's parent

Crashed client when tryinmg to update curser session. Also would have crashed while updateing modpacks, if the functionality itself was used.
LostOfThought/MUP