Fix access to settings in WSGI handler.