Fix segfault on tables without primary key
Fix segfault on tables without primary key

Fixes #37. Regression introduced in ad7efc7.

confluentinc/bottledwater-pg,confluentinc/bottledwater-pg,confluentinc/bottledwater-pg,confluentinc/bottledwater-pg