It is broken upstream in T179774, so the borrowed code also has the issue.
https://github.com/wikimedia/svgtranslate/pull/21
Done.
No QA required.