Could not run tests in development environment without this change

I wanted to run the tests in my development environment in which I have ```SSLIFY_DISABLE = True```, but would get an error because None is not an instance of HttpResponsePermanentRedirect.