Fix for #2010 (don't recreate DOM elements when updating popup content)

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