If the `ref` wasn't passed to the component (for example, it doesn't implement `React.forwardRef`), when it fails in runtime with ``` Cannot read properties of null (reading 'classList') ```