(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,johnduarte/puppetdb,grimradical/puppetdb,highb/puppetdb,senior/puppetdb,ajroetker/puppetdb,jantman/puppetdb,puppetlabs/puppetdb,puppetlabs/puppetdb,ajroetker/puppetdb,wkalt/puppetdb,jantman/puppetdb,cprice404/puppetdb,highb/puppetdb,kbarber/puppetdb,wkalt/puppetdb,grimradical/puppetdb,kbarber/puppetdb,shrug/puppetdb,waynr/puppetdb,mullr/puppetdb,shrug/puppetdb,rbrw/puppetdb,ajroetker/puppetdb,senior/puppetdb,kbarber/puppetdb,waynr/puppetdb,grimradical/puppetdb,puppetlabs/puppetdb,highb/puppetdb,rbrw/puppetdb,waynr/puppetdb,kbrezina/puppetdb,kbarber/puppetdb,cprice404/puppetdb,kbrezina/puppetdb,mullr/puppetdb,senior/puppetdb,puppetlabs/puppetdb,rbrw/puppetdb,wkalt/puppetdb,senior/puppetdb,wkalt/puppetdb,mullr/puppetdb,shrug/puppetdb,johnduarte/puppetdb,johnduarte/puppetdb,cprice404/puppetdb,puppetlabs/puppetdb,shrug/puppetdb,kbrezina/puppetdb,rbrw/puppetdb,ajroetker/puppetdb,mullr/puppetdb,highb/puppetdb,waynr/puppetdb,johnduarte/puppetdb,rbrw/puppetdb,mullr/puppetdb,kbrezina/puppetdb,jantman/puppetdb