Fix broken markup nesting in bp-legacy activity/entry.php

A logic error was causing invalid markup for non-logged-in users

Fixes #4932

Props imath

git-svn-id: https://buddypress.svn.wordpress.org/trunk@6915 cdf35c40-ae34-48e0-9cc9-0c9da1808c22