Fix for #2010

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