Fixing order of operations proble in web installer

Change-Id: Iabe5a7dd7be243d2ae5dfe16804e763585539b0a