Refactored the RunTableIndexingAsync method to make the logic resiliant to indefinite loop from recursion.