Djokovic survives scare to advance to round three of the Monte Carlo Masters