chore(elevation): Add guard for null z-index values.
chore(elevation): Add guard for null z-index values.

PiperOrigin-RevId: 472739843

material-components/material-components-web,material-components/material-components-web,material-components/material-components-web