As added protection, I added a piece of 2x4 to further cover the gap. I also added a small piece of 2x4 to support the dangling top plate and provide some additional nailing surface for drywall.
All images copyright Kevin A. Spousta. Unauthorized use is prohibited.