Steps to reproduce:
# Go to an arbitrary page on Czech Wikipedia.
# Open visual editor.
# "Insert" > "Template" > Input "Poznámka pod čarou" > "Add template"
# Fill the suggested parameter with arbitrary text.
# Click "Insert".
Instead of inserting the template, the editor gets stuck.
The content of the [[ https://cs.wikipedia.org/wiki/%C5%A0ablona:Pozn%C3%A1mka_pod_%C4%8Darou | template ]] is `{{#tag:ref|{{{1}}}|group="P"}}`.
Browser console reports:
```
jQuery.Deferred exception: element.querySelectorAll is not a function ve.stripParsoidFallbackIds@https://cs.wikipedia.org/w/load.php?...:1803:856
ve.ce.MWTransclusionNode.static.filterRendering@https://cs.wikipedia.org/w/load.php?...:2149:859
ve.dm.MWTransclusionModel.prototype.insertTransclusionNode/<@https://cs.wikipedia.org/w/load.php?...:2155:196
mightThrow@https://cs.wikipedia.org/w/load.php?debug=false&lang=cs&modules=jquery%2Cmediawiki%7Cmediawiki.legacy.wikibits&only=scripts&skin=vector&version=0upuj5q:49:590
resolve/</process<@https://cs.wikipedia.org/w/load.php?debug=false&lang=cs&modules=jquery%2Cmediawiki%7Cmediawiki.legacy.wikibits&only=scripts&skin=vector&version=0upuj5q:50:269
undefined
```