Could have, but pilots practice no fuel landings all the time (in simulators). If they can get to ground that is "level enough" nobody dies. It is not something you ever want to see in the real world (and in the real world people often do die when it happens), but it isn't automating people die.