Fix coding style

Use `goog.isDef(x) ? x : {}` instead of `x || {}`