Templates: fix regression in AJAX functionality for Add/Remove Friends button on user account screens.

Fixes #5826, props hnla

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