Fixed bug where root was not object causing crash

I was using https://github.com/rsdoiel/extractor-js and was experiencing the above error, fixed by making root an empty object.