fix: remove all existing `SessionResourcesTracker`s when repairing

We have to remove all existing `SessionResourcesTracker`s when repairing
the recommendation structures as these trackers store resource objects
that might not exist anymore.
Merge pull request #731 from cspurk/master

fixed/improved recommendations repair code