ensure that undefined items are not added to the store.
keep from trying to push undefined values into the store