Serena Williams survived a second set collapse to beat Lucie Safarova in the third round of the China Open