Check if response is nil pointer in NewDocumentFromResponse
Added test for NewDocumentFromResponse with nil response
gofmt
Merge pull request #37 from siriustnt/nilresponse

NewDocumentFromResponse crashes when nil pointer is passed