Use bp_core_get_user_domain() instead of bp_displayed_user_domain().

sbrajesh was right to use bp_core_get_user_domain() because of cached
values.