strip out nil values from the payload