Add assertion in quadrature representation to avoid incorrect code
generated when enriched elements have different mappings.