Better exception handling when indexing

Added a for loop within the content iterator, so failing to add a single document won't cause the entire index task to fail.