A stoppage-time goalkeeping howler handed Monaco a 2-1 victory and a crucial three points in the race for the Champions League places in Ligue 1.