Fix #to_conditions treat nil path as wildcard path.
Add test for wildcard path.