bug fixed for null values in payload

bug fixed for null values in payload