Vid 1815

The fact that `ApiService::foreignCall` does not check the host name is definitely a bug.  I'll bet there is other code falling victim to this.  Rather than create this method, my suggestion would be to return `false` from `ApiService::foreignCall` if `$hostName` is not defined, similar to how this function handles other errors.