[DataStoreFactory] Fix a bug that reurns NULL.