It is problematic to call up a Cohen to the Torah after a Cohen, and this is because there is a concern that someone might think that the first Cohen had a defect. In this case however, where everyone realizes that the reason for calling up Cohen after Cohen is because everyone on the premises is a Cohen, it can be done.