Fix bug where a CSV without titles resulted in wrong html

TODO: The solution breaks other (unused) functionality of the rows api!
We should either remove the unused parts or change the rest of the api
to match the new representation of a row. It was represented as a
dictionary and is now a simple list.