They arrive just in time to see Twilight using her magic to pull Thunderwing's corpse out of the ocean and attach one end of a patch to his head and the other end to her horn. Twilight shoves the Dark Energon shard into Thunderwing's corpse, revivng him and returning Thunderwing to his own body.
Hello. I don't think Starscream defeats Ryan in that scene. If he's gone, he cannot restore Prinus' spark. And if he can't restore Primus' spark, the universe will come to an end because of the Black Hole.