Change pattern matching to always match empty patterns.