Fix compilation of matching and not_matching when no common attributes.