Polyfill for HTMLTemplateElement.prototype.content property for Safari