Fix broken <script type="text/x-template"> in <template>.