Added check for originalHost before splitting, found this caused an issue with some sites where this was undefined in a series of followAllRedirects