[jquery] Looping through candidates in isControllerOf should not be destructive.