fix json_array_get throws NPE
Github issue: https://github.com/facebook/presto/issues/922