[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)
Merge pull request #1 from mangoszero/master

Merge from mangoszero