Bug fixes. (Unreachable code removal and cross-domain XHR fix.)