Fixing an issue in removePortFromHostHeaderString where a blank string could be returned