The difference between the Treasure and Cannonball episodes is that the half-pendant in Bonny was in the room before the third guard. In the Cannonball episode, since the door from the Shrine didn't open downward, the Shrine guard had to be the third. This is, of course, unless the crew was counting on some extraordinarily senseless backtracking.