Fix EZP-20644: ODF Replace with a wrong document completely spoils the content