fixed exception on empty <title/> tag