Popover: minor improvement

Avoid an `empty().append(...)` on subsequent shows. Handle `title` in the same way as `content`.
You can combine this if statement with the one below.