Fix JSON parsing of body "null" response
Allow unittest to be run with older PHP versions
Merge pull request #104 from quafzi/fix-json-null-response

Fix JSON parsing of body "null" response