Ensure all ODF elements are recreated when setting a new root element