avoid "uninitialized variable" warning when searching for `pinba_*` variables

`ngx_http_get_indexed_variable` will trigger a warning if the variable
is not defined in the current location. This happens when you use
different `pinba_*` variable in different locations. We check if the
variable is valid before retrieving its value.