Index: bp-core/bp-core-catchuri.php
===================================================================
--- bp-core/bp-core-catchuri.php	(revision 3570)
+++ bp-core/bp-core-catchuri.php	(working copy)
@@ -97,8 +97,10 @@
 	if ( empty( $paths[0] ) )
 		array_shift( $paths );
 
+	$bp_uri = array_merge( array(), $bp_uri );
+
 	foreach ( (array)$bp_uri as $key => $uri_chunk ) {
-		if ( in_array( $uri_chunk, $paths )) {
+		if ( !empty( $paths[$key] ) && $uri_chunk == $paths[$key] ) {
 			unset( $bp_uri[$key] );
 		}
 	}
