Move an assertion in the bridge code so it only gets hit if the bridge