Roger Federer is confident he will be fit enough to play at this month's French Open, despite Thursday's surprise defeat to Dominic Thiem.