[scraper] - fixing possible array out of bounds access (seen in a crashlog on ios)