Danny da Costa scored a last-gasp equaliser as Mainz earned a precious point at home to Stuttgart, who had come from behind to lead late in the second half.