RAZ-2884: Invalid collection error thrown while trying to delete lucene index
Modified to check existence of collection before trying to delete index