fix the exception bug when JSONObject is a NullObject.