Catch null pointer for now when there is no connection to get the json string