Index: src/bp-core/bp-core-dependency.php
===================================================================
--- src/bp-core/bp-core-dependency.php
+++ src/bp-core/bp-core-dependency.php
@@ -221,7 +221,7 @@
 
 	// If the current user is being setup before the "init" action has fired,
 	// strange (and difficult to debug) role/capability issues will occur.
-	if ( ! isset( $GLOBALS['wp_customize'] ) && ! did_action( 'after_setup_theme' ) ) {
+	if ( false === strpos( bp_get_requested_url(), 'customize.php' ) && false === strpos( wp_get_referer(), 'customize.php' ) && ! did_action( 'after_setup_theme' ) ) {
 		$e = new Exception;
 		$trace = $e->getTraceAsString();
 
