The Spanish tennis player has not played a competitive match since April.