Fix to our detection of all primary keys being set.