clean up an NPE for parsing JSON in the message response