#998: Fix undefined host in validate_redirect