FIX: Get only the correct collapse title in emails (PR #10228)

Previously, this would get every details block title from the entire post, for every details block.

GitHub