When table is constructed in Designer there is no problem because Designer itself handles correct array/object structure and size. However when doing this manually from dynamic layouts, it's too easy to end up JS errors due to fact that we assume correct array sized on row level(every row much match size of first row).
Make JS code more clever.