fix a bug that if value is NULL, the value_list of a attr_item will be out of range