Make Nokogiri::HTML::Document#title= always set the document title.

It now tries to create a title element (if missing) at an appropriate
place supplying head and/or html elements as necessary, which is inside
a head element if any, right after a meta encoding/charset tag if any,
and before any text node or content element (typically <body>) if any.