setContent() with a jquery selector

Hello,

I think there is a little mistake in case of using setContent() with a jquery selector as argument.
It produce a javascript error: "Uncaught TypeError: Cannot read property 'appendTo' of null".