Check for the empty string before creating a new text node when setting document.title
Merge pull request #2993 from hazz/document-set-title

Correctly handle empty string on setting document.title; r=Manishearth+Ms2ger