Add missing NULL check to acquire_bridge() function.