Male sure table array is not null using JsArrays.toSafeArray()