Novak Djokovic struggled through his hot and humid third-round match at the Shanghai Masters against the qualifier Yannick Hanfmann after dropping the first set