innerHTML was not working correctly for HTMLTemplateElement

The logic for handling innerHTML (and outerHTML) for template elements needs to be handled in the generic innerHTML function due to the recursive call.