Check responseBody for null or empty before trying to pull JSON value