ATP World Tour Finals: Djokovic survives Thiem scare