Prevent duplication of root resources if != new_document_in_root