An unlatched hood could fully open and obstruct the driver’s view, raising the risk of a crash. Tesla released an over-the-air software update to fix the issue.