Tab flapping fix

If the model is rapidly updated while the browser is under load it is possible for activeTab to be assigned a new value before the code within the setTimeout executes. 

This can cause the interface to switch back and forth between tabs in an uncontrolled manner. This code simply checks if activeTab is still what we expect it to be before making the change