[BZ-986479] avoid trying to retract invalid fact handles
[BZ-986483] avoid trying to clean up lock-on-active blocking activation
[BZ-986465] avoid infinite loop when removing a rule containing a sliding window