Bug found: Privacy restriction doesn't work

If you go to the "BuddyPress Settings" tab under the theme options and try to enable privacy on all members profile for not logged in user, you get the following error when clicking on the members page as an unregistered user:

"Warning: Cannot modify header information - headers already sent by (output started at /home/job4jo5/public_html/wp-content/themes/bp-social/members/index.php:12) in /home/job4jo5/public_html/wp-includes/pluggable.php on line 934"

How can I resolve this issue?