PHOENIX-858 Disallow null primary key (JamesTaylor)