Added check for missing primary key.