(maint) Fix Helper tcp socket connection
(maint) Fix Helper tcp socket connection

Prior to this commit, there was a problem with a function in helper
that caused FOSS tests to fail for PuppetDB. This commit fixes that.

grimradical/puppetdb,kbrezina/puppetdb,wkalt/puppetdb,senior/puppetdb,highb/puppetdb,ajroetker/puppetdb,johnduarte/puppetdb,rbrw/puppetdb,wkalt/puppetdb,waynr/puppetdb,johnduarte/puppetdb,kbrezina/puppetdb,shrug/puppetdb,grimradical/puppetdb,kbrezina/puppetdb,mullr/puppetdb,senior/puppetdb,kbarber/puppetdb,puppetlabs/puppetdb,puppetlabs/puppetdb,melissa/puppetdb,shrug/puppetdb,rbrw/puppetdb,puppetlabs/puppetdb,waynr/puppetdb,cprice404/puppetdb,waynr/puppetdb,wkalt/puppetdb,waynr/puppetdb,cprice404/puppetdb,mullr/puppetdb,cprice404/puppetdb,grimradical/puppetdb,shrug/puppetdb,johnduarte/puppetdb,rbrw/puppetdb,kbarber/puppetdb,rbrw/puppetdb,mullr/puppetdb,ajroetker/puppetdb,puppetlabs/puppetdb,ajroetker/puppetdb,rbrw/puppetdb,melissa/puppetdb,kbarber/puppetdb,grimradical/puppetdb,senior/puppetdb,kbarber/puppetdb,puppetlabs/puppetdb,highb/puppetdb,highb/puppetdb,senior/puppetdb,jantman/puppetdb,johnduarte/puppetdb,melissa/puppetdb,mullr/puppetdb,shrug/puppetdb,ajroetker/puppetdb,highb/puppetdb,mullr/puppetdb,kbrezina/puppetdb,wkalt/puppetdb,jantman/puppetdb,jantman/puppetdb