Actually, i think it should operate the other way round.
To my understanding, diplomatic immunity is supposed to represent an unseen negotiation with another faction, which agrees to not attack. It is not an actual technology of 'shield of invulnerability'.
Therefore, since mines are completely autonomous and not sentient, when triggered by an envoy, they should explode and cause damage even though the envoy is 'invulnerable'.
Not matter that you have diplomatic immunuty, you moved through a minefield and stepped in a mine, it's your fault if you fly off in little pieces.
It just makes more sense to me.