That's exactly NOT AI. An AI system doesn't get pre-programmed for a specific purpose. To teach it in the first place, you give the system access to a simulator -
and assign goals and cost, and then you tell the AI to minimize cost while still reaching the goal. You don't specifically teach the system how to fly the airplane, or even that it is an airplane - it learns it through doing, with continuous feedback and adjustment. So when you take away a control surface, like in the case of the drone video above with the props damaged, it can learn another way to fly using whatever controls and control surfaces are remaining.
AI can actually do better at humans with sudden unexpected scenarios. Let's say there was an explosive decompression and you only have your right control surfaces operational, an AI can quickly run a few thousand "hours" of simulator training up there by itself in a couple of seconds, to teach itself the best way to fly the airplane with whatever is remaining of it. A human can't do that. We have to learn in real time - AI doesn't.
The technology isn't quite there yet. The NVidia PX2 stuff that Tesla is using is starting to be pretty cool though. Take a look here - the system learns how to recognize cars and people without being programmed to do so - it was just shown a bunch of pictures of cars and people, and now it can recognize them: