Fix progress bar

Protect underlying progress bar object against having its selection value set after it has been disposed.