Small fix to avoid null data if it's object was expired in db.
 "Cannot set property '.(ørigindex)' of null" error.