[BZ-1015109][DROOLS-281] fix object retraction
(cherry picked from commit d1a1fa06a1fe44892e0f75b7af883839198735b6)