Fixed bug#10710 - Adding agent with username that has already existed in AdminUser leads to SQL error message, thanks to S7.