In bp_is_current_component(), don't check is_page() if  is not populated.

Doing so causes warnings to be thrown when the function is called in certain instances
during automated testing.

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