Fixed call to createHTMLDocument for Firefox 19..