If onboard computer would sense that Ship is going somewhere it should not be it would trigger FTS (Flight Termination System) and destroy it with debris falling into Atlantic Ocean (exclusion zone was there as well).
Once Ship finished burn it simply had to land in predicted landing area in Indian Ocean, it did not have enough fuel on board to significantly change trajectory even if computer went crazy.