As KLM have a crap network in Spain I would guess they will say that your ticket with them was to Madrid and the responsibility stops once they got you there. How was she flying to her onward connection ? was that also with Spanair ? as for sure KLM will simply say we got you there eventually and you should have bought an open ticket with the carrier you chose to fly you onwards.