The existing check crudely only checked the top level, failing to find nested WildTypePatterns. Resolves #542682