Correctly scrape reference and source lists

When there are snaks which do not need to be scraped, their HTML is used for
scraping the next snak's value, which completely breaks display of reference
and source lists.

Bug: 61943
Change-Id: I11038267cab50f3e2ce09931b2705c75d3381f32