Beaten to it but I’m glad an expert agrees!
That’s not good! But you already knew that haha, all I can think of is to remove the tenon and then cut back into the rail a couple of inches, this will allow a loose tenon to be glued in, and then pegged as previously.
There is a great deal of force...