Prevents viewChange from removing all classes if executed too early

This is a failsafe in cases viewChange is manually triggered too early.
Related to #5579