Fixed a crash when attempting to trigger a window action with a sender.