Lost all electrical, then it came back. What's going on here?

That just looks like a ground link. Maybe there is an internal cct breaker inside the wiper motor?
Even if there was an internal CB in the wiper motor, how could that kill the entire car's electrical system?