Fix for crash in AppKit accessibility.