bugfix: we did not check if the request is nil in the ngx.var API.