Fix saving old ODF-based text objects in new files
BUG:389802 (cherry picked from commit f54a2d32fbc5bc065f67c4de2e2b4ab429bf4524)