Removing refunded items from an order notification

Hi,

I have to split items on an order notification into line.product.tags

Unfortunately refunded items on the order notification still show up on the email.

Is there a way to stop this please?