The solution given by MathWorks support is not working in the case of Action Subsystems that are not activated on time of the reset.
Attached is my solution to that problem.

Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!