Fixed missing columns/empty lines by filling in the elements with empties if absent.