Fix for #17076

When reversing a URL fails, inform the user which patterns were tried.

See https://code.djangoproject.com/ticket/17076