Removed possibility of IndexOutOfBoundsException
Incoherency when clearing static map containing MongoDataStore objects