[z2285] Re-sync realmd code in mangos-classic with mangos-tbc

Fixed possible crash at wrong realmd name in DB

Realmd sources mustbe _exactly_ same in classic/tbc/wotlk.

(based on commit 2582ca8)