Fixed wait loop when you choose to install sample sites in installer. Otherwise deadlock could occur.