[DROOLS-343] Rule Removal throws NPEs in a variety of ways
(cherry picked from commit ace16444e73191ceb6224b8a7d43016ddd6b4646)
[DROOLS-343] check for non initialized segment memories when removing a rule
(cherry picked from commit b3dbb0c31d5eee9f76942087118541a7b0abad16)