This block already exists further down. https://github.com/Nicofuma/phpbb/blob/ticket/11480/phpBB/includes/ucp/ucp_pm.php#L275