Fixed a bug

Fixed a bug which was causing application to crash if the user clicked
on launch button before the update window was loaded.