release ip bug fix

check for null json object when releasing ip