Merge from mangoszero

Fixed possible crash at wrong realmd name in DB

Realmd sources mustbe _exactly_ same in classic/tbc/wotlk.

(based on commit 2582ca8)