[api] Fix logging of the client_address when we're behind a proxy. This gets set to '' instead of None when retrieving it from WSGI.