If the burning of magnesium to form magnesium oxide is incomplete, there will still br some elemental magnesium available to be burned (ie combined with oxygen) and so there will be a measureable amount of mass of magnesium left. Also, the amount of oxygen required to combine with the outstanding mass of magnesium could also be determined.