wrap reading ngx.var in pcall rather than checking context
wrap reading ngx.var in pcall rather than checking context

because tests run in the same context

3scale/apicast,3scale/apicast,3scale/docker-gateway,3scale/docker-gateway,3scale/apicast,3scale/apicast