Avoid "too much recursion" in jquery.wikibase.sitelinklistview

Bug: 71453
Change-Id: I34553e7f5265c386071f40e9ebc05a66c6257739