Fixed a NPE when trying to parse an empty JSON response (issue 260)