fix(cdk/platform): avoid error during server-side rendering if document is stubbed out (#22260)
fix(cdk/platform): avoid error during server-side rendering if document is stubbed out (#22260)

Fixes an error that can be thrown by the `supportsScrollBehavior` helper if the
global `document` variable is stubbed out.

Fixes #22259.
DevVersion/material2,andrewseguin/material2,mmalerba/material2,angular/components,mmalerba/material2,andrewseguin/material2,angular/components,angular/components,DevVersion/material2,crisbeto/material2,andrewseguin/material2,josephperrott/material2,josephperrott/material2,josephperrott/material2,angular/components,DevVersion/material2,crisbeto/material2,josephperrott/material2,DevVersion/material2,crisbeto/material2,andrewseguin/material2,josephperrott/material2,mmalerba/material2,andrewseguin/material2,crisbeto/material2,DevVersion/material2,mmalerba/material2,mmalerba/material2