Setting the target and action to nil and null for isEnabled of NSMenuItem