Added fallback when the pattern matching procedure does not return any matches.