fix error if PAYLOAD is not in response
more robust check for rd.payload
Merge pull request #4 from philcruz/master

fix error if PAYLOAD is not in response