I'm too tired to remember now, but there was some reason that he survived that. There was a long discussion on /r/Naruto where someone made the same point you did and someone else explained how it happened.
Oh well, be honest, it would have been fucking gay if he just got written off like that anyways.