fix an Unexpected NullPointerException in case if json data contains array. Thanks to Vladimir Korbut (vkorbut).