Fixed bug: prevents popup's content from clearing, when template is string. At _updateContent method of Popup class.