fix JS error when col-date column is not there