libavsmash: Avoid NULL dereference by sample description index.