Not sure if this is just specific to this one website, but I've found an example of a site that returns a 404 error when XenForo tries to get its title, even though it is a valid page.
Example:
https://familysearch.org/ark:/61903/1:1:KQZT-1B8
Adding:
->setHeaders('Accept', 'text/html')
to the...