I think he got good treatment from the check-in agaent because if I worked there I would have made him leave the line and to come back when he had sorted his bags out. as I would need to check other passengers in.
That was NOT good service from the checkin agent if you are the PAX waiting behind these people in the que. We always send people to the side to sort themselves out and continue to checkin the following PAX.