Make sure that the node exists before attempting to clone.