Amalgam of a loop over an idempotent quasigroup