Marseille scored a contentious second goal to draw 2-2 against Montpellier, and move within six points of Caen in third place in Ligue 1.