[fix bug 884479] Remove settings.MEDIA_URL from RegisterMiddleware when ...

Alternate fix for Bug 884479.