message: fix: Don't break when function call context is undefined
diff: @@ -531,6 +531,7 @@ function instrumentDOM(): void {
  options?: boolean | AddEventListenerOptions,
  ): AddEventListener {
  if (type === 'click' || type == 'keypress') {
  + try {
  const el = this as InstrumentedElement;
  const handlers = (el.__sentry_instrumentation_handlers__ = el.__sentry_instrumentation_handlers__ || {});
  const handlerForType = (handlers[type] = handlers[type] || { refCount: 0 });
  @@ -542,6 +543,10 @@ function instrumentDOM(): void {
  }
  handlerForType.refCount += 1;
  + } catch (e) {
  + // Accessing dom properties is always fragile.
  + // Also allows us to skip `addEventListenrs` calls with no proper `this` context.
  + }
  }
  return originalAddEventListener.call(this, type, listener, options);
  @@ -576,7 +581,8 @@ function instrumentDOM(): void {
  }
  }
  } catch (e) {
  - // accessing dom properties is always fragile
  + // Accessing dom properties is always fragile.
  + // Also allows us to skip `addEventListenrs` calls with no proper `this` context.
  }
  }
  