I've now pushed a fix for this in the emacs-29 branch.

Marking this bug done.

Thanks,
João