fix parsing of semantic template interation w/ shadowdom polyfill

R=arv
BUG=

Review URL: https://codereview.appspot.com/10348043