Make reflection robust to tables without primary keys

Some tables don't have primary keys.

In this case `get_pk_constraint` should return something falsey.