Avoid NRE on Dispose when IndexWriter is null. Add ReadOnlyLuceneDataProvider.