fix the crash caused by reference to dealloced object

If the preference controller is released, the application crashes due to reference to realloced MASPreferenceWindowController object.