Call scrollIntoView only if supported by the element

Some elements may not a scrollIntoView function - for example,
elements under an SVG element. Call those only if they exist.

CLA signed