Make robust to tables without Primary Keys

Some tables don't have primary keys.

In this case `get_pk_constraint` should return something falsey.