Just let the players vote on it. Someone could initiate role swap to the role of the person who's role isn't represented, and a box pops up for voting to accept role change. Allow rewards based on class they queued as ve class they changed to if they didn't join dungeon with party so this can't be exploited as pre-planned thing.