Novak Djokovic joined Rafa Nadal as a guaranteed semi-finalist at the ATP World Tour finals after a victory over Argentine Juan Martin del Potro.