[[ Bug 10865 ]] Make sure we don't disable handling of the Quit and Preferences AppleEvents if secureMode is true.
Merge branch 'bugfix-10865' into release-6.1.1