BZ-1064212: now checks if index is under batch indexing before returning the fresh state of an index