Fixed #14664 -- Logged a warning if MiddlewareNotUsed is raised in DEBUG...

... mode.

https://code.djangoproject.com/ticket/14664
Remember that versionchanged blocks should be standalone so they can be removed when the time comes (in two releases) without losing any important content.