[client] Add checks against null when manipulating DOM nodes.

1 job for ts-check-non-null-node in 4 minutes and 29 seconds (queued for 1 second)
latest
Status Name Job ID Coverage
  Test
passed ci #1154812

00:04:29