Fix JSON parsing to handle blank response bodies (for testing.)