Fix for returning first doc

With the current php-sdk, the returning docs are in the results property. I do not know if it is used elsewhere in the code, but I fixed it in the getDocument() method for now.