Conditionally add the root dataset for restore.