Rafael Nadal tastes defeat for the first time in 22 matches at the Madrid Open.