Filter out <template>s from expandedCascadingContents