Good catch. It should be the other way around, the check should be `(goog.isNull(...))`, not `(!goog.isDef(...))`. Commit to come.