Fix refreshIndex in case a localdata row is deleted