Fail to render svg correctly when defs of symbols are put at the end of the docuement

Summary:

For this svg file. test.svg, inkscape's render result is image.

We can see that some glyphs are missing.

Steps to reproduce:

What should have happened?

The result should be the same in your browser. Sample attachments: test.svg

Version info

Inkscape 1.3 (0e150ed6c4, 2023-07-21)