Instead of `goog.isDef`, we should use `goog.dom.isElement`.
Because `document.getElementById` (and `document.querySelector`) can return `null`