Controlling wind turbines in faulty grid conditions