Hi Tim,
Lucinda is quite correct, I have been advised that all you need to do is ask the check in operator to clarify, you are booked on a through ticket therefore you should be fine as you do not need to re check your luggage in at Madrid,
I hope this helps,
Kindest,
Ben