Fix for bug introduced when validating URL.