fixes a bug with an undefined varaible in the HttpHelper that was
introduced in a recent pull request