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

https://code.djangoproject.com/ticket/23643#no4
Maybe this could be made more explicit by writing `if exceptions == []`?