Handle missing refs in html scraper