Change buddypress() reference to $bp global.

See commit 39150f3.