Fix a crash when ramIndex is empty in loadFromIndex