Check user properties before attempting to use in bp_get_activity_user_link()

This prevents PHP notices when users have been incompletely deleted from the DB.

Fixes #5685

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