Fix view duplication when rerendering full template view with multiple top level elements (Fix #299)