avoid stringify error if undefined value