Add check for nil path in Wildcard#valid?.