Small fix to avoid null data if it's object was expired in db.
 "Cannot set property '.(ørigindex)' of null" error.
Merge pull request #27 from ArVan/master

Small fix to avoid null data if it's object was expired in db.