pk_set can be None

Fixes #3409. @cpennington, can you review this?