Fixes "ReferenceError: hostClients is not defined" issue

This fix was created by @admanb, I'm just creating a new pull request which only contains the fix for this one issue.