Adding a NULL check to column count

The metadata_ has the potential for being NULL; this will correct a potential segfault when iterating over a result (e.g. DELETE statement).