[NEXUS-5814] Catch any exception to avoid breaking of indexing process