Fix the issue that the run button can not be disabled

@benglin, @ikeough

This submission fixes the issue that the run button is not disabled when RunEnabled is set to false from the model. A test case is also added to check this.