fix bug #59613 (Crash with clone XMLReader)