Add check before trying to split headers.host