guard against unknown index when inferring indexed item type
fix crash with starred assignments where IndexNode generated for type inference ended up being visited