[sr-dev] git:5.1:8ce74832: tm: safty checks when destroying the tm cell