Avatars: fix PHP Notice when passing a `WP_User` object to `get_avatar`.

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