Fix duplicated popover content on reopening 

BUG FIX - fixing a problem when dynamic content is added to popover through content function. In this case if element wasn't in DOM (detached element) popover content will be duplicated on popover reopening.

Here is a JS fiddle demonstrating the problem
http://jsfiddle.net/z8FZ3/1/