You're simply wrong. The non-vacuum-optimized engines on the upper stage are still functioning in a vacuum, and their ability to gimbal to offset the loss of one of the vacuum-optimized engines was planned for.