Fatal error: Call to a member function xpath() on a non-object

Here was a request for that problem https://github.com/jkrug/TOXID-cURL/pull/7
Merge pull request #12 from gsmark/patch-3

Fatal error: Call to a member function xpath() on a non-object