function getDefaultObject(value, defaultValue) {
  if (typeof value != TYPE_undefined && value != null) {
    return /** @type Object */(value);
  } else {
    return defaultValue;
  }
}
@param {Object|null|undefined} value The possible value to use.
@param {Object} defaultValue The default if the value is not set.
@return {Object} The value, if it is
defined and not null; otherwise the default