Fix several loading issues with localization files (don't add menu div until files are loaded, and properly handle empty callbacks in loadDomain).