Fix another crasher when table has no primary key. Fixes #8.