Fixed bug : Added support  for templates with multiple roots at _updateContent method.