safelyAccessDocumentEvent
Returns the ownerDocument of the event's target, when reachable. The required browser-DOM accessors are not available in commonMain, so this always returns null — the same value the original guard chain returns whenever the target or its ownerDocument is missing.