I would say the rout test is based on the entire warband, not those on the table, since otherwise there should be a special rule noting an exception in this case.
Similarly, since the scenario doesn't say the game ends if the models that start on the board are all taken out of action, then the game continues and the rest of the warband's models can enter looking for revenge.