When the security group the rule belongs to does not exist and the state is absent, the module is not properly exited, leading to a playbook execution failure. Fixes issue #50057