How the heck do you think a helmet would have prevented this "accident"? You're better off just not riding in door zones. Ever. And you can start now--no need to wait until payday.
Anyway, I'm glad you weren't hurt too badly. These door crashes are often fatalities.