[Bug 10710] Adding agent with username that has already existed in AdminUser leads to SQL error message