Fixes #23643 - Show exception chain in debug template for Py3k

https://code.djangoproject.com/ticket/23643#no4