Fix in .text method when setting a value

After upgrading to jQuery 1.9.1 I had some errors involving .text method.
When setting a value, instead of the text I was getting [Object Text] in the element.

Example (console):

$('.brief').text('test')
[
<div class=​"brief">​[object Text]​</div>​
]

My fix put actual content in the element.