Jakub Mensik nearly quit the Miami Open before his final win over Novak Djokovic.