Data vailidity check

If some data is missing in one of the columns, newer versions of C3 will break in an unexpected place, which makes it hard to debug. This patch catches the error early so as to ease debugging.