Novak Djokovic secured the 102nd title of his career and extended his flawless record in Beijing to 34-0 after Alex de Minaur was forced to retire injured during the China Open final.