Fixed null pointer issue in updatepartycustomfield.