The Boeing 787-9 was on its way back to Madrid two days after the incident.