I believe the 3km rule was applied for that incident:
[INDENT]In the event that a rider or riders suffer a fall, puncture or mechanical incident in the last 3 kilometres and such an incident is duly recognised, the rider or riders involved are credited with the same finishing time of the rider or riders they were with at the time of the incident.
They are attributed this ranking only upon crossing the finish line. If after a fall, it is impossible for a rider to cross the finish line, he is given the ranking of last in the stage and credited with the time of the rider or riders he was with at the time of the incident. For exceptional cases, the decision taken by the stewards committee is final.
"It's, like, so much fun."