Added safety mechanism if database is updated mid enumeration (YapDatabase)